package com.gqzdev.xblog.controller.home;

import com.gqzdev.xblog.entity.Description;
import com.gqzdev.xblog.service.DescriptionService;
import org.springframework.web.bind.annotation.*;

import javax.annotation.Resource;

/**
 * (Description)表控制层
 *
 * @author ganquanzhong
 * @since 2020-06-07 19:56:07
 */
@RestController
@RequestMapping("description")
public class DescriptionController {
    /**
     * 服务对象
     */
    @Resource
    private DescriptionService descriptionService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public Description selectOne(Integer id) {
        return this.descriptionService.queryById(id);
    }

}